package com.zsrt.java.day20161230.lh.day.ex.demo03;

public class Book {
	private String bookname;
	private static int NO;
	private double price;
	
	
	
	public Book() {
		super();
	}
	public Book(String bookname,  double price) {
		this.bookname = bookname;
		this.NO ++;
		this.price = price;
	}
	public String getBookname() {
		return bookname;
	}
	public void setBookname(String bookname) {
		this.bookname = bookname;
	}
	public int getNO() {
		return NO;
	}
	public void setNO(int nO) {
		NO = nO;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	
	public void bookNum(){
		System.out.println("图书数量："+NO);
		
		
	}
	
	public void printInfo(){
		System.out.println(this.getNO());
		System.out.println(this.getBookname());
		System.out.println(this.getPrice());
	}
	

}
